import request from "@/utils/request.js";

/**
 * 资金流水相关接口
 */

// 资金流水查看接口
export function getFundData(params){
    return request({
        url:"/api/profile",
        method:"get",
        params
    });
};
// 资金流水新增接口
export function insertFundData(params){
    return request({
        url:"/api/profile/add",
        method:"post",
        data:params
    });
};
// 资金流水编辑接口
export function updateFundData(id,params){
    return request({
        url:"/api/profile/edit/"+id,
        method:"post",
        data:params
    });
};
// 资金流水删除接口
export function deleteFundData(id){
    return request({
        url:"/api/profile/delete/"+id,
        method:"delete"
    });
};